<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>价格:{{price}}</h1>
    <h1>添加价格符号:{{price | myCurrency('￥')}}</h1>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            price: 356
        },
        filters: {
            myCurrency: function (myInput,arg1) {
                var result = arg1+myInput;
                return result;
            }
        }
    })
</script>
</body>
</html>